package cn.com.open.opensaas.answerservice.model.question;

import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * 作答记录
 */
@Document(collection = "answerquestionlog")
public class AnswerQuestionLog implements Cloneable{

    private String testPaperID;//试卷ID
    private List<QuestionContentJsonModel> items;
    private String userID;//作答人
    private String answerTime;//作答时间
    private int hesitationCount;//犹豫次数
    private String knowledgeID;//知识点ID
    private String universityID;//高校ID
    private String batchID;//批次ID
    private String subjectID;//科目ID
    private String levelID;//层次ID
    private String specialtyID;//专业ID
    private Long uniqueId;//处理当前数据标识
    private boolean isDecimal;//true  客观填空，完形填空，阅读理解按double计算分值  false 按int计算
    private boolean isHalf;// 多选题是否半对判分
    private String itemBankId;//题库ID
    private String appkey;//应用ID
    private String createOrgID;//机构ID
    private String courseID;//课程ID

    @Override
    public Object clone() {
        AnswerQuestionLog answerQuestionLog = null;
        try{
            answerQuestionLog = (AnswerQuestionLog)super.clone();
        }catch(CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return answerQuestionLog;
    }



    public String getTestPaperID() {
        return testPaperID;
    }

    public void setTestPaperID(String testPaperID) {
        this.testPaperID = testPaperID;
    }

    public List<QuestionContentJsonModel> getItems() {
        return items;
    }

    public void setItems(List<QuestionContentJsonModel> items) {
        this.items = items;
    }

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public String getAnswerTime() {
        return answerTime;
    }

    public void setAnswerTime(String answerTime) {
        this.answerTime = answerTime;
    }

    public int getHesitationCount() {
        return hesitationCount;
    }

    public void setHesitationCount(int hesitationCount) {
        this.hesitationCount = hesitationCount;
    }

    public String getKnowledgeID() {
        return knowledgeID;
    }

    public void setKnowledgeID(String knowledgeID) {
        this.knowledgeID = knowledgeID;
    }

    public String getUniversityID() {
        return universityID;
    }

    public void setUniversityID(String universityID) {
        this.universityID = universityID;
    }

    public String getBatchID() {
        return batchID;
    }

    public void setBatchID(String batchID) {
        this.batchID = batchID;
    }

    public String getSubjectID() {
        return subjectID;
    }

    public void setSubjectID(String subjectID) {
        this.subjectID = subjectID;
    }

    public String getLevelID() {
        return levelID;
    }

    public void setLevelID(String levelID) {
        this.levelID = levelID;
    }

    public String getSpecialtyID() {
        return specialtyID;
    }

    public void setSpecialtyID(String specialtyID) {
        this.specialtyID = specialtyID;
    }

    public Long getUniqueId() {
        return uniqueId;
    }

    public void setUniqueId(Long uniqueId) {
        this.uniqueId = uniqueId;
    }

    public boolean getIsDecimal() {
        return isDecimal;
    }

    public void setIsDecimal(boolean decimal) {
        isDecimal = decimal;
    }

    public boolean getIsHalf() {
        return isHalf;
    }

    public void setIsHalf(boolean half) {
        isHalf = half;
    }

    public String getItemBankId() {
        return itemBankId;
    }

    public void setItemBankId(String itemBankId) {
        this.itemBankId = itemBankId;
    }

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getCreateOrgID() {
        return createOrgID;
    }

    public void setCreateOrgID(String createOrgID) {
        this.createOrgID = createOrgID;
    }

    public String getCourseID() {
        return courseID;
    }

    public void setCourseID(String courseID) {
        this.courseID = courseID;
    }
}
